package org;

import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IClient;
import org.red5.server.api.IConnection;
import org.red5.server.api.scope.IScope;

public class Application extends ApplicationAdapter {


	public synchronized boolean connect(IConnection conn, IScope scope,
			Object[] params)
	{
		System.out.println("好的"+conn.isConnected()+"........."+params.length);
		return super.connect(conn, scope, params);
	}
	

	public boolean appConnect(IConnection conn,Object[] args)
	{
		System.out.println("xxxxxxxxxxxxxxxxx");
		return true;
	}
	
	

	public synchronized boolean join(IClient client, IScope scope)
	{
		return super.join(client, scope);
	}


	public synchronized void leave(IClient client, IScope scope)
	{
		super.leave(client, scope);
	}


	public synchronized boolean start(IScope scope)
	{
		return super.start(scope);
	}


	public synchronized void stop(IScope scope)
	{
		super.stop(scope);
	}


	public void disconnect(IConnection conn, IScope scope) {
		System.out.println("断开连接"+conn.isConnected());
	}

}
